import Cookies from 'js-cookie'

const TokenKey = 'Admin-Token'

export function getToken() {
  return Cookies.get(TokenKey)
}

export function setToken(token) {
  return Cookies.set(TokenKey, token)
}

export function removeToken() {
  return Cookies.remove(TokenKey)
}

// 本地存储cookies判断登录状态

const Admin = 'Admin'
export function getAdmin() {
    return Cookies.get(Admin)
  }
  
  export function setAdmin(value) {
    return Cookies.set(Admin, value)
  }
  
  export function removeAdmin() {
    return Cookies.remove(Admin)
  }
  
